﻿//初始化入口
$(function() {
    var date = new Date();
    var datevalue = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate();
    $('#txtbdate').datebox('setValue', datevalue);
    $('#txtedate').datebox('setValue', datevalue);
    
});

function btn_Search() {
    $.messager.progress({
        title: '查询',
        msg: '正在查询中，请等待...'
    });
    var bdate = $('#txtbdate').datebox('getValue');
    var edate = $('#txtedate').datebox('getValue');
    requestAjax('../Controller.aspx?controller=WyReportController&method=GetCollectAccountData', { bdate: bdate, edate: edate }, function() {
        printDivPreview($('#content'), '../../Report/');
        $.messager.progress('close');
    }, function() { $.messager.progress('close'); });
}
